package com.weijian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weijian.common.pojo.CommonResult;
import com.weijian.dal.entity.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    CommonResult<List<Category>> queryCategoryByIds(List<Long> ids);

    CommonResult<Category> queryCategoryById(Long id);

    void updateCategory(Category category);

    void deleteCategoryById(Long id);

    void deleteCategoryByIds(List<Long> ids);

    CommonResult<List<Category>> listByTypeId(Long categoryId);
}
